package lab02.test27;

import java.util.Scanner;

public class test27 {
    public static void main(String[] args) {
   System.out.println("请输入一个整数：");
        Scanner  scanner = new Scanner(System.in);

        try{
            int a = scanner.nextInt();
            System.out.println(a);
        }catch (Exception e){
            System.out.println("你输入的不是整数");
        }
    }
}
